var __server_url='http://localhost:9999';
var sboot = {
  service_url:function (path){
                return __server_url + path;
              },
  /**
   * 四舍五入
   * @param val 原数值
   * @param precision 保留的小数位数
   * @return 四舍五入后的结果，如round(1.2345, 3)->1.235
   */
  round: function(val, precision){
    var multiple = 1;
    for(var i=0;i<precision;i++){
      multiple = multiple * 10;
    }

    var tmp = val * multiple;
    tmp = Math.round(tmp);
    return tmp / multiple;
  },
};




